<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script src="./lib/axios.js"></script>
<script>
   axios({
       method: 'GET',
       url: 'http://www.liulongbin.top:3006/api/getbooks',
       params: {
           id: 1
       }
   }).then(function (result){
       console.log(result)
   })
</script>
</body>
</html>